import request from '@/utils/request'

// 查询网站页脚列表
export function listFooter(query) {
  return request({
    url: '/cms/footer/list',
    method: 'get',
    params: query
  })
}

// 查询网站页脚详细
export function getFooter(id) {
  return request({
    url: '/cms/footer/' + id,
    method: 'get'
  })
}

// 新增网站页脚
export function addFooter(data) {
  return request({
    url: '/cms/footer',
    method: 'post',
    data: data
  })
}

// 修改网站页脚
export function updateFooter(data) {
  return request({
    url: '/cms/footer',
    method: 'put',
    data: data
  })
}

// 删除网站页脚
export function delFooter(id) {
  return request({
    url: '/cms/footer/' + id,
    method: 'delete'
  })
}
